

const syncCfgPage = {
    namespaced: true,
    state: {
        "current": 0,
        "hitCount": true,
        "pages": 0,
        "records": [
        ],
        "searchCount": true,
        "size": 0,
        "total": 0
    },

    mutations: {
        SET:(state, val)=>{
            state=val
        }
    },

    actions: {
        /* login */
        getAll({ commit }, page) {
            return new Promise((resolve, reject) => {
                Post("/Api/getAll", page).then(response => {
                    let object = response.data;
                    debugger
                    commit('SET', object)
                    resolve(response)
                }).catch(error => {
                    reject(error)
                })
            })
        },
    },


}

export default syncCfgPage